package com.example.estest.entity;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import lombok.Builder;
import lombok.Data;

/**
 * author: 画家
 * date: 2019-06-15
 * desc:
 */
@Data
@Builder
@Document(indexName = "mop_monitor_page", type = "mop_monitor_page")
public class PageViewEntity {

    @Id
    @Field(type = FieldType.Auto)
    private String id;

    @Field(type = FieldType.Keyword)
    private String uuid;

    @Field(type = FieldType.Integer)
    private Integer projectId;

    @Field(type = FieldType.Integer)
    private Integer pageId;

    @Field(type = FieldType.Integer)
    private Integer channelId;

    @Field(type = FieldType.Keyword)
    private String sessionId;

    @Field(type = FieldType.Integer)
    private Integer deviceType;

    @Field(type = FieldType.Integer)
    private Integer visitorType;

    @Field(type = FieldType.Date)
    private Date dateTime;

    @Field(type = FieldType.Ip)
    private String ip;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Integer getPageId() {
        return pageId;
    }

    public void setPageId(Integer pageId) {
        this.pageId = pageId;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getVisitorType() {
        return visitorType;
    }

    public void setVisitorType(Integer visitorType) {
        this.visitorType = visitorType;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}

